const request = require('../../utils/request')
Page({
  data: {
    banners: [],
    category: [],
    Newpeople: [],
    nutphone: [],
    computers: []
  },
  async onLoad() {
  const result = await request({
      url: 'https://shopapi.smartisan.com/mobile/new/home?channel_id=1002'
    })
    this.setData({
      banners: result[0].content,
      category: result[1].content,
      Newpeople: result[2].content,
      nutphone: result[4].content,
      computers: result[7].content
    })
  }
})